]> dgit.raspbian.org Git - gnome-shell.git/commit
Define stable ordering for application favorites and running apps
authorColin Walters <walters@verbum.org>
Sat, 8 Aug 2009 14:03:08 +0000 (10:03 -0400)
committerColin Walters <walters@verbum.org>
Sat, 8 Aug 2009 19:47:49 +0000 (15:47 -0400)
commit687a87d3d090283b0404b44a2159bd063f4fa20c
tree594954d0f44d44b7a6c55316aedf4e97a1951281
parent464842ea36e88de94135609fcdfdfe3240e64076
Define stable ordering for application favorites and running apps

For both of these, because of optimizations a few patches ago, we
ended up relying on hash table ordering which caused instability
in the application well among other things. Define an ordering
for both.

The favorites is just the order of the GConf keys, and new items
get appended.  In the future we should allow insertion at any
point which the grid could use.

For running applications order, define a new "initially_seen_sequence"
transient variable which is just an monotonically incrementing
integer assigned to an application for the first time we saw it
running in this session.  When an application is closed, it's reset.
src/shell-app-monitor.c
src/shell-app-system.c